﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using webappdotnet;


public partial class View_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        /**
        DataClassesDataContext dataUsers = new DataClassesDataContext();

        // The database table object inside LINQ, instantiate it

        Leerling user = new Leerling();

        // set all properties, these are nothing but fields your database tables

        user.naam = User.Identity.Name;
        user.klas = "1A";

        dataUsers.Leerlings.InsertOnSubmit(user);  // still not inserted into database, just added into the LINQ Database object

        dataUsers.SubmitChanges();**/


    }

    protected bool TestIsLeerling(string naam) {
        return Queries.IsLeerling(naam);
    }

    protected void LoginStatus1_LoggingOut(object sender, LoginCancelEventArgs e)
    {

    }
}
